import request from "@/utils/request.js";

//用户协议
export function UserAgreement(params) {
  return request({
    url: "/company/user_agreement",
    method: "get",
    params: params,
  });
}

//隐私政策
export function PrivacyAgreement(params) {
  return request({
    url: "/company/privacy_agreement",
    method: "get",
    params: params,
  });
}

//上传文件
export function Upload(data) {
  return request({
    url: "/common/upload",
    method: "post",
    data,
  });
}

//富文本上传 editor_upload
export function editorUpload(data) {
  return request({
    url: "/common/editor_upload",
    method: "post",
    data,
  });
}

//类目
export function Category(data) {
  return request({
    url: "/category/index",
    method: "post",
    data,
  });
}

//省市区
export function Area(data) {
  return request({
    url: "/common/area",
    method: "post",
    data,
  });
}

//易链值列表
export function ChainMoneyLog(params) {
  return request({
    url: "/chain_money_log/index",
    method: "get",
    params:params,
  });
}

//先易额度记录列表 
export function GuaranteeMoneyLog(params) {
  return request({
    url: "/order_guarantee/index",
    method: "get",
    params:params,
  });
}

//易定我的 线上线下参数列表 order/params
export function OrderParams(params) {
  return request({
    url: "/order/params",
    method: "get",
    params:params,
  });
}

//赎回钱 
export function OrderGuaranteeRedeem(data) {
  return request({
    url: "/order_guarantee/redeem",
    method: "post",
    data,
  });
}

//获取默认地址 
export function AddressGetDefault(data) {
  return request({
    url: "/address/get_default",
    method: "post",
    data,
  });
}

